﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace uREST.CMS.Resources
{
    public class Document
    {
        public int Id { get; set; }
        public string Href { get; set; }
        public int ParentId { get; set; }
        public string ParentHref { get; set; }
        public string Name { get; set; }
        public string DocTypeAlias { get; set; }
        public List<Property> Properties { get; set; }
        public bool HasChildren { get; set; }
        public string ChildrenHref { get; set; }
        public bool IsPublished { get; set; }
        public PublishAction PublishAction { get; set; }
        public DateTime ReleaseDate { get; set; }
        public DateTime ExpireDate { get; set; }

        public Document()
        {
            Properties = new List<Property>();
        }
    }

    public enum PublishAction
    {
        Ignore,
        Publish,
        UnPublish
    }
}
